package com.northone.statistics.utils;

import java.util.HashMap;
import java.util.Map;

public class Constans {
	public static final int QUERY_ALL_SAINT = 0x0453;
	public static final int SEARCH_SAINT = 0x0451;
	public static final String CLICK_POSITION = "position";

	public static Map<String, Integer> monpsMap;
	static {
		monpsMap = new HashMap<String, Integer>();
		monpsMap.put("一月", 0);
		monpsMap.put("二月", 1);
		monpsMap.put("三月", 2);
		monpsMap.put("四月", 3);
		monpsMap.put("五月", 4);
		monpsMap.put("六月", 5);
		monpsMap.put("七月", 6);
		monpsMap.put("八月", 7);
		monpsMap.put("九月", 8);
		monpsMap.put("十月", 9);
		monpsMap.put("十一月", 10);
		monpsMap.put("十二月", 11);
	}

	public static int getPositByName(String monthName) {
		Integer integer = monpsMap.get(monthName);
		return integer == null ? -1 : integer;
	}
}
